<template>
	<view class="module-wrap global-search-module">
		<cl-search :placeholder="placeholder" :showSearchButton="false" border="" @search="onSearch">
			<template #prepend>
				<cl-icon className="iconfont icon-wxbsousuotuiguang" :size="40"></cl-icon>
			</template>
		</cl-search>
	</view>
</template>

<script lang="ts" setup>
import { ref, defineComponent } from "vue";

const props = defineProps({
    placeholder: {
        type: String,
        default: ''
    }
})

const emit = defineEmits(["search"]);

function onSearch(value: any) {
	emit("search", value);
}
</script>

<style lang="scss" scoped>
</style>
